package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs=new Student();
        zs.name="吴亦凡";
        zs.age=30;
        zs.address="碧桂园";
        zs.clasName="jsd2307";
        zs.stuId="001";
        zs.eat();
        zs.sleep();
        zs.study();
        zs.play("蔡徐坤");
        zs.sayHi();
        System.out.println();

        Doctor ls=new Doctor("李四",20,"碧桂园","妇产科主任");
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.cut();
        System.out.println();

        Teacher ww=new Teacher("王五",30,"碧桂园",3000.6);
        ww.eat();
        ww.sleep();
        ww.teach();
        ww.test("李四");
        ww.sayHi();
    }
}
